<?php

namespace common\model;

use think\model\RelationModel;

class TaskWorkOrderTaskListModel extends RelationModel
{
    //自动验证
    protected $_validate = [
        ['work_order_id', '', '', self::MUST_VALIDATE, 'require', self::MODEL_INSERT],
        ['work_order_id', '', '', self::EXISTS_VALIDATE, 'integer'],
        ['task_id', '', '', self::MUST_VALIDATE, 'require', self::MODEL_INSERT],
        ['task_id', '', '', self::EXISTS_VALIDATE, 'integer'],
    ];
}